package com.skyolder.crutch.ast.builder;

import com.skyolder.crutch.ast.FileTree;
import com.skyolder.crutch.ast.Tree;
import com.skyolder.crutch.error.GrammarError;
import com.skyolder.crutch.ev.Environment;
import com.skyolder.crutch.word.BufferTokenPiper;
import com.skyolder.crutch.word.TokenQueue;

public class AstBuilder {
	public static Tree build(Environment rootEnvironment,TokenQueue tq) throws GrammarError{
		FileTree fileTree=new FileTree(rootEnvironment,tq);
		fileTree.build();
		return fileTree;
	}
}
